<template>
    <div>
        <el-form :model="formData" label-width="80px">
            <el-form-item label="商品数量">
                <el-input v-model="formData.num" style="width: 250px;"></el-input>
            </el-form-item>
            <el-form-item label="批发价">
                <el-input v-model="formData.inventoryPrice" style="width: 250px;"></el-input>
            </el-form-item>
            <el-form-item label="处方价">
                <el-input v-model="formData.salePrice" style="width: 250px;"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" style="width: 250px;" @click="handleSubmit">应用</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                formData: {
                    num: 0,
                    inventoryPrice: 0,
                    salePrice: 0
                }
            }
        },
        methods: {
            handleSubmit() {
                this.$emit('submit', this.formData)
            }
        }
    }
</script>

<style scoped>

</style>
